﻿<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/html">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>移交历史管理</title>
<#include "../common/link.ftl">
</head>
<body class="hold-transition skin-blue sidebar-mini">
<div class="wrapper">
<#include "../common/navbar.ftl">
    <!--菜单回显-->
<#--c:set var="currentMenu" value="customer"/>-->
<#--使用freemarker来-->
<#assign currentMenu="customerTransfer">
    <#include "../common/menu.ftl">
    <script>
        $(function () {
            //提交表单
            $(".btn-submit").click(function () {
                //原始异步提交表单方法
                /*var param=$("#editForm").serialize();
                $.post('/customer/saveOrUpdate.do',param,handlerMessage);*/

                //Jquery-form表单异步提交插件（仅支持有表单时才可）
                $("#searchForm").ajaxSubmit(handlerMessage);
                /* $("#editForm").ajaxForm(handlerMessage);*/
            })
        })
    </script>
<#--freemarker的include，包含另外一个模板文件，需要使用相对当前模板文件的路径再去找另一个模板  -->
    <div class="content-wrapper">
        <section class="content-header">
            <h1>移交历史管理</h1>
        </section>
        <section class="content">
            <div class="box">
                <!--高级查询--->
                <form class="form-inline" id="searchForm" action="/customerTransfer/list.do" method="post">
                    <input type="hidden" name="currentPage" id="currentPage" value="1">
                    <div class="form-group">
                        <label for="keyword">关键字:</label>
                        <input type="text" id="keyword" name="keyword" placeholder="请输入姓名或电话" value="${qo.keyword!}">
                        <button id="btn_query" class="btn btn-primary"><span class="glyphicon glyphicon-search btn-submit"></span>
                            查询
                        </button>
                    </div>
                    <a href="#" class="btn btn-success btn-input" style="margin: 10px">
                        <span class="glyphicon glyphicon-plus"></span> 添加
                    </a>
                </form>
                <!--编写内容-->
                <div class="box-body table-responsive no-padding ">
                    <table class="table table-hover table-bordered">
                        <tr>
                            <th>编号</th>
                            <th>客户姓名</th>
                            <th>客户电话</th>
                            <th>操作日期</th>
                            <th>操作人</th>
                            <th>旧营销人员</th>
                            <th>新营销人员</th>
                            <th>移交原因</th>
                        </tr>
                        <#list pageInfo.list as customertransfer>
                            <tr>
                                <td>${customertransfer_index+1}</td>
                                <td>${(customertransfer.customer.name)!}</td>
                                <td>${(customertransfer.customer.tel)!}</td>
                                <td>${(customertransfer.operateTime!?string('yyyy-MM-dd'))!}</td>
                                <td>${(customertransfer.operator.name)!}</td>
                                <td>${(customertransfer.oldSeller.name)!}</td>
                                <td>${(customertransfer.newSeller.name)!}</td>
                                <td>${(customertransfer.reason)!}</td>
                            </tr>
                        </#list>
                    </table>
                    <!--分页-->
                    <#include "../common/page.ftl">
                </div>
            </div>
        </section>
    </div>
    <#include "../common/footer.ftl">
</div>
</body>
</html>
